package com.mentalhealthplatform.global.elasticsearch;

import com.mentalhealthplatform.appModels.Test;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface TestElasticsearchV2 extends ElasticsearchRepository<Test, Integer> {
    List<Test> findByTopicContaining(String topic);
}